﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Uc_DangTin.ascx.cs"
    Inherits="BatDongSan.Modules.Uc_DangTin" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<script type="text/javascript">
    function DoPrint() {
        this.print();
    }

</script>
<div style="width:100%;" align="right">
    <asp:Label ID="lbStatus" runat="server" Font-Bold="true" Font-Size="11" Font-Italic="True" ForeColor="Red"></asp:Label>
</div>
<div align="left">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td style="width: 130px; padding: 5px 0px 5px 0px;" align="right">
                Tiêu đề (<span style="color: Red;">*</span>):
            </td>
            <td style="padding: 5px 0px 5px 0px;">
                <asp:TextBox ID="txtName" runat="server" Width="600"></asp:TextBox>
            </td>
        </tr>
    </table>
    <div style="border: solid 1px #CCCCCC;">
        <div style="padding: 5px 0px 5px 10px; background-color: #42B2DA;">
            <b>Lịch đăng tin</b>
        </div>
        <div>
            <table cellpadding="3">
                <tr>
                    <td align="right" style="width: 130px;">
                        Ngày bắt đầu(<span style="color: Red;">*</span>):
                    </td>
                    <td>
                        <asp:TextBox ID="txtDateBegin" runat="server" Width="70"></asp:TextBox>
                        <asp:Image ID="imgCalendar" runat="server" ImageUrl="/App_Themes/cvkadmin/images/Calendar.png" />
                        <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDateBegin"
                            PopupButtonID="imgCalendar">
                        </cc1:CalendarExtender>
                        &nbsp;&nbsp; Ngày kết thúc(<span style="color: Red;">*</span>):
                        <asp:TextBox ID="txtDateEnd" runat="server" Width="70"></asp:TextBox>
                        <asp:Image ID="Image1" runat="server" ImageUrl="/App_Themes/cvkadmin/images/Calendar.png" />
                        <cc1:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtDateEnd"
                            PopupButtonID="imgCalendar1">
                        </cc1:CalendarExtender>
                        &nbsp;&nbsp; Loại tin:
                        <asp:DropDownList ID="ddlTypeNews" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div style="padding-top:5px;"></div>
    <div style="border: solid 1px #CCCCCC;">
        <div style="padding: 5px 0px 5px 10px; background-color: #42B2DA;">
            <b>Thông tin mô tả</b>
        </div>
        <div>
            <table>
                <tr valign="top">
                    <td style="width: 130px;" align="right">
                        Mô tả (<span style="color: Red;">*</span>):
                    </td>
                    <td>
                        <asp:TextBox ID="txtDescrption" runat="server" Width="600" TextMode="MultiLine" Rows="6"></asp:TextBox>
                    </td>
                </tr>
                <tr valign="top" align="right">
                    <td>
                        Hình ảnh:
                    </td>
                    <td align="left">
                        <asp:FileUpload ID="FileUpload1" runat="server" />
                        <asp:HiddenField ID="hdfImage" runat="server" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div style="padding-top:5px;"></div>
    <div style="border: solid 1px #CCCCCC;">
        <div style="padding: 5px 0px 5px 10px; background-color: #42B2DA;">
            <b>Thông tin cơ bản</b>
        </div>
        <div>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <table>
                        <tr>
                            <td style="width: 130px;" align="right">
                                Hình thức:
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlNhaDat" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlNhaDat_SelectedIndexChanged">
                                </asp:DropDownList>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                Loại:&nbsp;&nbsp;
                                <asp:DropDownList ID="ddlCaterogy" runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                Địa chỉ(<span style="color: Red;">*</span>):
                            </td>
                            <td>
                                <asp:TextBox ID="txtAddress" runat="server" Width="600"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                Tỉnh / Thành phố(<span style="color: Red;">*</span>):
                            </td>
                            <td colspan="2">
                                <asp:DropDownList ID="ddlProvince" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlProvince_SelectedIndexChanged">
                                </asp:DropDownList>
                                &nbsp;&nbsp;&nbsp;&nbsp; Quận / Huyện(<span style="color: Red;">*</span>):
                                <asp:DropDownList ID="ddlWard" runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 130px;" align="right">
                                Diện tích(<span style="color: Red;">*</span>):
                            </td>
                            <td>
                                <asp:TextBox ID="txtArea" runat="server"></asp:TextBox>
                                <asp:DropDownList ID="ddlAreaUnit" runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                Giá:
                            </td>
                            <td>
                                <asp:TextBox ID="txtPrice" runat="server"></asp:TextBox>
                                <asp:DropDownList ID="ddlPriceUnit" runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </div>
    <div style="padding-top:5px;"></div>
    <div style="border: solid 1px #CCCCCC;">
        <div style="padding: 5px 0px 5px 10px; background-color: #42B2DA;">
            <b>Thông tin khác</b>
        </div>
        <div>
            <table>
                <tr>
                    <td colspan="2">
                        <table border="0" cellpadding="0" cellspacing="3" width="100%">
                            <tr>
                                <td style="width: 130px;" align="right">
                                    Mặt tiền:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtMatTien" runat="server"></asp:TextBox>
                                </td>
                                <td style="width: 130px;" align="right">
                                    Đường vào:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtLoiVao" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 130px;" align="right">
                                    Hướng nhà:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtHuongNha" runat="server"></asp:TextBox>
                                </td>
                                <td style="width: 130px;" align="right">
                                    Hướng ban công: 
                                </td>
                                <td>
                                    <asp:TextBox ID="txtHuongBanCong" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 130px;" align="right">
                                    Số tầng:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtSoTang" runat="server"></asp:TextBox>
                                </td>
                                <td>
                                    
                                </td>
                                <td>
                                    
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 130px;" align="right">
                                    Số phòng:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtSoPhong" runat="server"></asp:TextBox>
                                </td>
                                <td style="width: 130px;" align="right">
                                    Số tolet:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtSoTolet" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                            <td align="right" valign="top" style="width: 130px;">
                                Nội thất:
                            </td>
                            <td align="right" colspan="3">
                                <asp:TextBox ID="txtNoithat" runat="server" TextMode="MultiLine" Rows="4" Width="100%"></asp:TextBox>
                            </td>
                </tr>
                        </table>
                    </td>
                </tr>
                
                <%--<tr>
                    <td>
                        Bản đồ:
                    </td>
                    <td>
                    </td>
                </tr>--%>
            </table>
        </div>
    </div>
    <div style="padding-top:5px;"></div>
    <div style="border: solid 1px #CCCCCC;">
        <div style="padding: 5px 0px 5px 10px; background-color: #42B2DA;">
            <b>Thông tin người bán</b>
        </div>
        <div>
            <table>
                <tr>
                    <td style="width: 130px;" align="right">
                        Tên người bán (<span style="color: Red;">*</span>):
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserName" runat="server" Width="200"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        Địa chỉ (<span style="color: Red;">*</span>):
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserAddress" runat="server" Width="200"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        Số điện thoại:
                    </td>
                    <td>
                        <asp:TextBox ID="txtTelephone" runat="server" Width="200"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        Số di động(<span style="color: Red;">*</span>):
                    </td>
                    <td>
                        <asp:TextBox ID="txtPhone" runat="server" Width="200"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        Email:
                    </td>
                    <td>
                        <asp:TextBox ID="txtEmail" runat="server" Width="200"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div style="padding-top:5px;"></div>
    <div align="right">
        <asp:Button ID="btUpdate" runat="server" OnClick="btUpdate_Click" CssClass="boxsearch" />
    </div>
</div>
